package com.lsx.logisticscore.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lsx.logisticscore.entity.Ticket;
import com.lsx.logisticscore.request.GetTicketInfoVo;
import com.lsx.logisticscore.response.TicketResp;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface TicketMapper extends BaseMapper<Ticket> {

    Page<Map<String, Object>> selectTicketInfoByEmpId(Page<Map<String, Object>> page, String empId);

    Page<TicketResp> selectTicketInfo(Page<TicketResp> page, GetTicketInfoVo req);

    Integer insertSelective(Ticket ticket);

    List<Map<String, Object>> selectCountByStatus();

    List<Map<String, Object>> selectNewCountIn7day();

    List<Map<String, Object>> selectFinishCountIn7day();

    List<Map<String, Object>> selectSumIn7day();

}
